package com.ewei.web.common.email;

import java.util.ArrayList;
import java.util.List;

/**
 * 邮件传输参数
 * @author David
 *
 */
public class TransferParams {
	//to address
	private List<String> toAddress = new ArrayList<String>();
	//cc adddress
	private List<String> ccAddress = new ArrayList<String>();
	//subject
	private String subject;
	//content
	private String content;
	//is attached file?
	private boolean isAttach = false;
	
	private List<String> filePaths = new ArrayList<String>();

	public List<String> getToAddress() {
		return toAddress;
	}

	public void addToAddress(List<String> toAddresses) {
		this.toAddress.addAll(toAddresses);
	}
	
	public void addToAddress(String toAddress){
		this.toAddress.add(toAddress);
	}
	
	public List<String> getCcAddress() {
		return ccAddress;
	}

	public void addCcAddress(List<String> ccAddresses) {
		this.ccAddress.addAll(ccAddresses);
	}
	
	public void addCcAddress(String ccAddress){
		this.ccAddress.add(ccAddress);
	}
	
	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public boolean isAttach() {
		return isAttach;
	}

	public void setAttach(boolean isAttach) {
		this.isAttach = isAttach;
	}

	public List<String> getFilePaths() {
		return filePaths;
	}

	public void addFilePaths(List<String> filePaths) {
		this.filePaths.addAll(filePaths);
	}
	
	public void addFilePaths(String filePath) {
		this.filePaths.add(filePath);
	}
	
}
